Release 10.1A: OpenEdge Getting Started:
Object-oriented Programming
Defining and using visual objects in classes
A class file can use all static visual objects (for example,
BROWSE,BUTTON,FRAME,IMAGE,MENU,RECTANGLE,SUB-MENU) as well asSTREAMandWORK-TABLEobjects, but these can only be defined local to a class file, that is, asPRIVATEdata members.Also, a class file does not support executable code in the main block. The main block can only contain the
CLASSstatement,DEFINEstatements, andONstatements. Typical graphical user interface (GUI) applications have aWAIT-FORstatement or includeONstatements within conditional execution pathways. Neither theWAIT-FORstatement nor conditional code is supported within the main block of a class file.Therefore, when using GUI objects you must follow these restrictions:
Given these rules the following class file is valid:
However, the following class file is invalid, because the lines marked with bold comments (
#1and#2) contain executable code:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |